package com.heima.common.enums;

/**
 * 自媒体模块
 * 枚举类型
 */
public enum MediaEnum {

    /**
     * 素材类型
     */
    MEDIA_MATERIAL_TYPE_IMG(0, "图片"),
    MEDIA_MATERIAL_TYPE_VIDEO(1, "视频"),

    /**
     * 文章封面图片类型
     */
    NEWS_COVER_TYPE_AUTO(-1, "自动"),
    NEWS_COVER_TYPE_NONE(0, "无图"),
    NEWS_COVER_TYPE_ONE(1, "单图"),
    NEWS_COVER_TYPE_MANY(3, "多图"),

    /**
     * 文章上下架状态
     */
    NEWS_ENABLE(0, "下架"),
    NEWS_DISABLE(1, "上架"),

    /**
     * 文章提交状态
     */
    NEWS_SUBMIT_STATUS_DRAFT(0, "草稿"),
    NEWS_SUBMIT_STATUS_COMMIT(1, "提交(待审核)"),
    NEWS_SUBMIT_STATUS_FAIL(2, "审核失败（不通过）"),
    NEWS_SUBMIT_STATUS_ARTIFICIAL(3, "人工审核"),
    NEWS_SUBMIT_STATUS_ARTIFICIAL_PASS(4, "人工审核通过"),
    NEWS_SUBMIT_STATUS_PASS(8, "审核通过(待发布)"),
    NEWS_SUBMIT_STATUS_PUBLISH(9, "已发布"),

    /**
     * 素材引用类型
     */
    MATERIAL_TYPE_REF_TYPE_CONTENTIMG(0, "内容引用"),
    MATERIAL_TYPE_REF_TYPE_CONVERIMG(1, "封面引用"),

    /**
     * 文章标记
     */
    ARTICLE_FLAG_NORMAL(0, "普通文章"),
    ARTICLE_FLAG_HOT(1, "热点文章"),
    ARTICLE_FLAG_TOP(2, "置顶文章"),
    ARTICLE_FLAG_GOOD(3, "精品文章"),
    ARTICLE_FLAG_BIGV(4, "大V文章"),


    ;

    private Integer val;
    private String desc;

    MediaEnum(Integer val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    public Integer getVal() {
        return val;
    }

    public String getDesc() {
        return desc;
    }
}
